<div class="release-form">
          <form class="form-horizontal" role="form" action="{$strUrl}&step={$step}" method="post"  id="pubTaskForm{$step}" name="pubTaskForm{$step}">
  			<input type="hidden" name="{$step}" value="{$step}">
  			<input type="hidden" name="formhash" id="formhash" value="{FORMHASH}">

          <div class="form-group">
            <label class="col-sm-3 control-label">行业分类 <span class="text-danger">*</span></label>

              <div class="col-sm-3">
                  <select class="form-control" name="indus_pid" id="indus_pid" onchange="getIndustry(this.value,'indus_id')">
                     <option value="">请选择父行业</option>
                     {loop $arrTopIndustrys $v}
                     	<option value="{$v['indus_id']}" {if $arrPubInfo['indus_pid'] ==$v['indus_id']} selected="selected"{/if}>{$v['indus_name']}</option>
                     {/loop}
                   </select>
              </div>
              <div class="col-sm-3">
                <select class="form-control" name="indus_id" id="indus_id">
                     <option value="">请选择子行业</option>
                     {if $arrPubInfo['indus_id']}
                      {loop $arrAllIndustrys $v}
							<option value="{$v['indus_id']}" {if $arrPubInfo['indus_id'] == $v['indus_id']} selected="selected"{/if}>{$v['indus_name']}</option>
                      {/loop}
                     {/if}
                   </select>
              </div>
              <div class="col-sm-offset-2 col-sm-8">
                   <span class="help-block"></span>
                 </div>

          </div>
		 {if $isTask12[v]=="3" && $isClose12[v]=="6"}
		  		<div class="form-group">
			<label class="col-sm-3 control-label">
				地区分类
				<span class="text-danger"></span>
			</label>
			<div class="col-sm-2">
				<select onchange="city();" class="form-control"  id="onecity" name="onecity" ">
					<option value="" >请选择一级地区</option>
					{loop $one $v}
					<option value="{$v['id']}" >{$v['name']}</option>
					{/loop}
				</select>
			</div>
			<script text="text/javascript">
				function city(){
					 var one=$("#onecity").val();
					 $.ajax({
						   type: "POST",
						   url: "index.php?do=pubtask&id=1&step=step2&fc=1&one="+one,
						   success: function(msg){
						   	$("#ss").empty(msg);
						   	$("#ss").append(msg);
						   }
						});	
				}
			</script>
			<!-- 二级城市 -->
			<div class="col-sm-2" id="ss">
			</div>
			<!-- 三级城市 -->
			<div class="col-sm-2" id="ss3">
			</div>
			<script text="text/javascript">
				function city3(){
					 var two=$("#twocity").val();
					 $.ajax({
						   type: "POST",
						   url: "index.php?do=pubtask&id=1&step=step2&fc=2&two="+two,
						   success: function(msg){
						   	$("#ss3").empty(msg);
						   	$("#ss3").append(msg);
						   }
						});	
				}
			</script>
		</div>
{/if}

          <!-- 行业分类 end -->
 			{if $is_task_template}
		<div class="row">
			<div class="col-sm-6 col-sm-offset-3">
				<div class="alert alert-info">
				<span >需求不会写？点击这里选择模板</span>
				<a href="javascript:inserttem();" class="btn btn-default">插入模板</a>
				</div>
			</div>
		</div>
		{/if}
          <div class="form-group">
            <label for="txt_title" class="col-sm-3 control-label">标题名称 <span class="text-danger">*</span></label>
            <div class="col-sm-6">
              <input type="text" class="form-control" id="txt_title" name="txt_title" placeholder="标题名称" value="{$arrPubInfo['txt_title']}">
            </div>
            <div class="col-sm-3">
              <p class="form-control-static">任务标题最多50字符</p>
            </div>

          </div>


          <!-- 标题名称 end -->

          <div class="form-group">
            <label for="tar_content" class="col-sm-3 control-label">需求描述 <span class="text-danger">*</span></label>
            <div class="col-sm-6">
              <textarea id="tar_content" name="tar_content"   placeholder="需求描述" >{$arrPubInfo['tar_content']}</textarea>
            </div>
            <div class="col-sm-3">
              <p class="form-control-static">内容不的少于20字</p>
            </div>
		 <script type="text/javascript" src="{$_K['siteurl']}/static/js/ueditor/ueditor.config.js"></script>
					<!-- 编辑器源码文件 -->
					<script type="text/javascript" src="{$_K['siteurl']}/static/js/ueditor/ueditor.all.min.js"></script>
					<script type="text/javascript" src="{$_K['siteurl']}/static/js/ueditor/lang/zh-cn/zh-cn.js"></script>
					 <!-- 实例化编辑器 -->
				    <script type="text/javascript">
				        var ue = UE.getEditor('tar_content', {
				            //这里可以选择自己需要的工具按钮名称,此处仅选择如下五个
				        	initialFrameWidth: '100%',
				        	initialFrameHeight: '400'
				        });
				    </script>
          </div>
          <!-- 需求描述 end -->

          <div class="form-group">
            <label for="upload" class="col-sm-3 control-label">上传附件</label>
            <div class="col-sm-6">
              <p class="form-control-static">
	              <input type="file" id="upload" name="upload">
	              <input type="hidden"  name="file_ids" id="fileid"  class="form-control" value="{$arrPubInfo['file_ids']}">
              </p>
            </div>
            <div class="col-sm-3">
              <p class="form-control-static">最多5个附件，每个附件不得超过{$basic_config['max_size']}M。</p>
            </div>
          </div>
          <!-- 上传附件 end -->
          <div class="form-group ">
            <div class="col-sm-offset-3 col-sm-6">
              <ul class="affix-list" id="fileList">
               {if !empty($arrFileLists)}
	              {loop $arrFileLists $v}
	              	<li class="affix-list-item" data-file-id="{$v['file_id']}">{$v['file_name']}
	              	<a href="javascript:void(0);" data-file-id="{$v['file_id']}" data-class="delete-file">删除</a></li>
	              {/loop}
              {/if}
              </ul>
            </div>
          </div>
          <!-- 附件列表 end -->

 						<script src="static/js/uploadify/jquery.uploadify.min.js?r={RANDOM_PARA}" type="text/javascript"></script>
						<link href="static/js/uploadify/uploadify.css" rel="stylesheet">
						<script type="text/javascript">
                                $(function(){
                                	setTimeout(function(){
                                    uploadify({
                                    	text:'上传附件',
                                    	auto:true,
                                    	hide:false,
                                    	exts:'{$strExtTypes}',
                                    	size:"{$basic_config['max_size']}MB",
                                    	limit:5
                                    	},{
										objType:'task',
										sessionId:sessionId
                                    	},uploadResponse);
                                },500);
                                });
								function uploadResponse(json){
                                	//$("#fileList").append('<li class="affix-list-item">'+json.msg.name+'</li>');
								}
                        </script>
          <!--{template task/custom}-->
          <div class="form-group">
            <label for="txt_mobile" class="col-sm-3 control-label">手机号码 <span class="text-danger">*</span></label>
            <div class="col-sm-6">
              <input type="text" class="form-control" id="txt_mobile" name="txt_mobile" value="{if $arrPubInfo['txt_mobile']}{$arrPubInfo['txt_mobile']}{else}{$user_info['mobile']}{/if}" placeholder="手机号码">
            </div>


          </div>
          <!-- 手机号码 end -->

          <div class="form-group">
            <div class="col-sm-offset-3 col-sm-6">
              <button type="submit" class="btn btn-primary" value="下一步" onclick="return isAgreementChecked();">下一步</button>
              <button type="button" class="btn btn-link" onclick="history.back();">上一步</button>
              <span class="text-danger hidden" id="pubAgreementTips">请同意《发布协议》</span>
            </div>
          </div>
          <!-- form-group end -->

          <div class="form-group">
            <div class="col-sm-offset-3 col-sm-6">
              <div class="checkbox">
              <label>
                <input type="checkbox" checked="checked" value="true" id="agreementchecked"> 同意 <a href="javascript:void(0);" id="viewPubAgreement">《发布协议》 </a>
              </label>
            </div>
            </div>
          </div>
          <!-- form-group end -->

        </form>
        <div class="release-agreement hidden">
          <div class="agreement-header">
            <h2 class="agreement-title">《发布协议》</h2>
          </div>
          <p><!--{tag 任务发布协议}--></p>
        </div>
      </div>